﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Alos.Entity;
using Alos.Common;
using Alos.IRepository;
using Alos.IService;
using PetaPoco;

namespace Alos.Service
{
    public class RePutQuestionService : BaseService<RePutQuestion>, IRePutQuestionService
    {
        IRePutQuestionRepository RePutQuestionRepository;
        public RePutQuestionService(IRePutQuestionRepository _RePutQuestionRepository)
        {
            RePutQuestionRepository = _RePutQuestionRepository;
        }
        /// <summary>
        ///添加学生课堂问答
        /// </summary>
        /// <param name="RePutQuestion"></param>
        /// <returns></returns>
        public bool CreateRePutQuestion(RePutQuestion RePutQuestion)
        {
            return RePutQuestionRepository.CreateRePutQuestion(RePutQuestion);
        }
        /// <summary>
        ///修改学生课堂问答
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public bool UpdateRePutQuestion(int Id)
        {
            return RePutQuestionRepository.UpdateRePutQuestion(Id);
        }
        /// <summary>
        ///根据老师ID和备课ID获取学生课堂问答
        /// </summary>
        /// <param name="RePutQuestion"></param>
        /// <returns></returns>
        public IEnumerable<dynamic> getRePutQuestion(int TeacherID, int LessionID)
        {
            return RePutQuestionRepository.getRePutQuestion(TeacherID,LessionID);
        }
    }
}
